package org.xiyinjihe.platform.dto.resp;

public class BasePageRespDTO<T> extends BaseDataRespDTO<T> {

    /* 总页数*/
    private Integer totalPage;
    /* 总条数*/
    private Long totalCount;
    /* dataTable中的记录数（已过滤/检索）*/
    private Long recordsFiltered;
    /* dataTable中的总记录数（未过滤）*/
    private Long recordsTotal;
    /* dataTable中当前第几页*/
    private Integer draw;

    public Integer getTotalPage() {
        return this.totalPage == null ? 0 : this.totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Long getTotalCount() {
        return this.totalCount == null ? 0L : this.totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    public Long getRecordsFiltered() {
        return recordsFiltered == null ? 0 : this.recordsFiltered;
    }

    public void setRecordsFiltered(Long recordsFiltered) {
        this.recordsFiltered = recordsFiltered;
    }

    public Long getRecordsTotal() {
        return recordsTotal == null ? 0L : this.recordsTotal;
    }

    public void setRecordsTotal(Long recordsTotal) {
        this.recordsTotal = recordsTotal;
    }

    public Integer getDraw() {
        return draw  == null ? 1 : this.draw;
    }

    public void setDraw(Integer draw) {
        this.draw = draw;
    }
}